package com.zk.nacosprovider.Entity;

import java.io.Serializable;
import java.util.Date;

public class qa extends qaKey implements Serializable {
    private Integer type;

    private Date time;

    private Integer falsedeletion;

    private String aim;

    private static final long serialVersionUID = 1L;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    public String getAim() {
        return aim;
    }

    public void setAim(String aim) {
        this.aim = aim == null ? null : aim.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        qa other = (qa) that;
        return (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getDataid() == null ? other.getDataid() == null : this.getDataid().equals(other.getDataid()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()))
            && (this.getAim() == null ? other.getAim() == null : this.getAim().equals(other.getAim()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getDataid() == null) ? 0 : getDataid().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        result = prime * result + ((getAim() == null) ? 0 : getAim().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", type=").append(type);
        sb.append(", time=").append(time);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", aim=").append(aim);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}